<section id="content" class="news-b"> 
	<nav id="breadcrumbs">
		<ol>
			<li><a href="/it_center/Pages/display">Home</a></li>
			<li>Giảng viên</li>
		</ol>
	</nav> 
	<?php foreach ($faculties as $faculty): ?>
		<article> 
			<header> 
				<figure class="image-b"> 
					<img src="/it_center/faculty/<?php echo $faculty['Faculty']['m_fct_image'];?>" alt="Placeholder" width="211" height="241">
				</figure>
				<h2><?php echo $faculty['Faculty']['m_fct_name'];?></h2>
				<p>
					Điện thoại: <?php echo $faculty['Faculty']['m_fct_tel'];?>
				</p>
				<p>
					Mobile: <?php echo $faculty['Faculty']['m_fct_mobile'];?>
				</p>
				<p>
					Email: <?php echo $faculty['Faculty']['m_fct_email'];?>
				</p>
				<p>
					Chuyên ngành phụ trách: 
					<?php 
						$subjects = $faculty['Subject'];
						$outStr = "";
						foreach ($subjects as $subject):
							If ($outStr != ""){
								$outStr = $outStr . " - ";
							}
							$outStr = $outStr . $subject['sub_name'];
						endforeach;
						echo $outStr;
					?>
				</p>
			</header>
			<p>	
				<?php echo $faculty['Faculty']['m_fct_descript'];?>
			</p>
	</article> 
	<?php endforeach; ?>
	<?php unset($faculties); ?>
	
</section>
